/**
 * Interface for Proxy action
 */
package edu.ufl.cise.sanitas.proxy;

import edu.ufl.cise.sanitas.types.comm.Response;
import edu.ufl.cise.sanitas.types.data.Feed;
import edu.ufl.cise.sanitas.types.data.Newsfeed;
import edu.ufl.cise.sanitas.types.data.User;

/**
 * @author tan
 * @version 1.0.0
 */
public interface ConnectionState {
	public void pushQuery();
	public void pushAnalysis();
	
	public byte[] syncPost();
	
	public byte[] createNewAccount(User newUser);
	
	public byte[] userLogin(String userName, String pwd);
	
	public void testState(String msg); // test purpose
	
	public byte[] responseData(Response response);	// convert response to byte[] format
	
	public byte[] bcastNewFeed(Feed newFeed);	// post a new feed

	public byte[] fetchAllNewsFeed(int userId);
	
	public byte[] updateUserConditions(String userName, String pwd, String[] conditions);
	
	public byte[] queryAllConditions();

	
}
